package com.sztx.pay.center.dataaccess.dao.mysql;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.sztx.pay.center.dataaccess.domain.RiskWithdrawBlackWhiteListDO;
import com.sztx.se.dataaccess.mysql.BaseMysqlDAO;

public interface RiskWithdrawBlackWhiteListMysqlDAO extends BaseMysqlDAO<RiskWithdrawBlackWhiteListDO> {
	RiskWithdrawBlackWhiteListDO findByUser(@Param("userId") String userId);
	
	RiskWithdrawBlackWhiteListDO findByUserAndChannelId(@Param("userId") String userId,@Param("channelId") String channelId);

    Integer save(RiskWithdrawBlackWhiteListDO riskWithdrawBlackWhiteListDO);
    
    int update(RiskWithdrawBlackWhiteListDO riskWithdrawBlackWhiteListDO);
    
    Integer listCount(RiskWithdrawBlackWhiteListDO listDO);
    
    List<RiskWithdrawBlackWhiteListDO> findauthlist(@Param("listDO") RiskWithdrawBlackWhiteListDO listDO,@Param("index") int index,@Param("count") int count);
}